package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

/**
 * @Description:
 * @ClassName: DishService
 * @Author: xmc
 * @Date: 2022/8/16 20:45
 * @Version: 1.0
 */
public interface DishService extends IService<Dish> {

    //保存菜品信息和口味
    public void saveWithDishFlavor(DishDto dishDto);

    //通过菜品id获取菜品信息和口味
    public DishDto getByIdWithDishFlavor(Long id);

    //通过菜品id更新菜品信息和口味
    public void updateWithDishFlavor(DishDto dishDto);

    //通过菜品id删除菜品信息和口味
    public void deleteWithDishFlavor(String id);
}
